﻿using ServiceStack.Redis;

namespace CommonUtils
{
    public static class RedisUtil
    {
        private static RedisClient _client = new RedisClient();

        public static void Set<T>(string key, T value)
        => _client.Set(key, value);

        public static T Get<T>(string key)
        => _client.Get<T>(key);
    }
}
